cmake_minimum_required(VERSION 3.20)

project (fastrpc LANGUAGES CXX VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED 23)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE Debug)
    add_compile_definitions(NEED_FASTRPC_LOG)
    message(STATUS "need fastrpc log")
endif()



set(DEPEND_LIBS 
pthread
uring

)

include_directories(${PROJECT_SOURCE_DIR})

# 设置可执行文件的输出路径
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)

add_subdirectory("${PROJECT_SOURCE_DIR}/examples/net")
add_subdirectory("${PROJECT_SOURCE_DIR}/examples/rpc")


